# coding:utf-8
from turtle import RawPen
import pygame, sys, random, time, easygui,os
from pygame.locals import *
import tkinter as tk
from tkinter import *
from PIL import Image, ImageTk
pygame.init()
def playmp3(lj,yl):
    pygame.mixer.music.load(lj)
    pygame.mixer.music.set_volume(yl)
    pygame.mixer.music.play()
window = tk.Tk()
window.title("鸡你太美播放器")
window.geometry("350x430")
window.resizable(0,0)
window.bind("j",lambda event:playmp3("mp3/鸡.mp3",1))
window.bind("n",lambda event:playmp3("mp3/你.mp3",1))
window.bind("t",lambda event:playmp3("mp3/太.mp3",1))
window.bind("m",lambda event:playmp3("mp3/美.mp3",1))
color_font = "#000000"
color = "#ffffff"
j = tk.Button(window,text = "鸡",command=lambda:playmp3("mp3/鸡.mp3",1),font = ("微软雅黑",15))
j.place(x = 20,y = 10)
n = tk.Button(window,text = "你",command=lambda:playmp3("mp3/你.mp3",1),font = ("微软雅黑",15))
n.place(x = 70,y = 10)
t = tk.Button(window,text = "太",command=lambda:playmp3("mp3/太.mp3",1),font = ("微软雅黑",15))
t.place(x = 120,y = 10)
t = tk.Button(window,text = "美",command=lambda:playmp3("mp3/美.mp3",1),font = ("微软雅黑",15))
t.place(x = 170,y = 10)
jntm = tk.Button(window,text = "鸡你太美",command=lambda:playmp3("mp3/鸡你太美.mp3",1),font = ("微软雅黑",15))
jntm.place(x = 220,y = 10)
ngm = tk.Button(window,text = "你干嘛，哈哈，哎哟",command=lambda:playmp3("mp3/你干嘛.mp3",0.6),font = ("微软雅黑",15))
ngm.place(x = 120,y = 110-40)
jntmm = tk.Button(window,text = "开始吟唱",command=lambda:playmp3("mp3/鸡你太美music.mp3",1),font = ("微软雅黑",15))
jntmm.place(x = 20,y = 110-40)
grlx = tk.Button(window,text = "个人练习生",command=lambda:playmp3("mp3/个人练习生.mp3",1),font = ("微软雅黑",15))
grlx.place(x =110,y = 170-40)
chang = tk.Button(window,text = "唱",command=lambda:playmp3("mp3/唱.mp3",1),font = ("微软雅黑",15))
chang.place(x = 20,y = 230-40)
tiao = tk.Button(window,text = "跳",command=lambda:playmp3("mp3/跳.mp3",1),font = ("微软雅黑",15))
tiao.place(x = 65,y = 230-40)
rap = tk.Button(window,text = "rap",command=lambda:playmp3("mp3/rap.mp3",1),font = ("微软雅黑",15))
rap.place(x = 110,y = 230-40)
lq = tk.Button(window,text = "篮球",command=lambda:playmp3("mp3/篮球.mp3",1),font = ("微软雅黑",15))
lq.place(x = 170,y = 230-40)
music = tk.Button(window,text = "music ",command=lambda:playmp3("mp3/music.mp3",1),font = ("微软雅黑",15))
music.place(x = 240,y = 230-40)
cxk = tk.Button(window,text = '蔡徐坤',command =lambda:playmp3("mp3/蔡徐坤.mp3",1),font = ("微软雅黑",15))
cxk.place(x = 240,y = 170-40)
djh = tk.Button(window,text = '大家好',command =lambda:playmp3("mp3/大家好.mp3",1),font = ("微软雅黑",15))
djh.place(x = 20,y = 170-40)
jhhd = tk.Button(window,text = '在今后的节目中我还准备了很多',command =lambda:playmp3("mp3/在今后的节目中我还准备了很多.mp3",1),font = ("微软雅黑",15))
jhhd.place(x = 20,y = 290-40)
ddtp  = tk.Button(window,text = '   期待的话请多多为我投票吧   ',command =lambda:playmp3("mp3/期待的话请多多为我投票吧.mp3",1),font = ("微软雅黑",15))
ddtp.place(x = 20,y = 350-40)
stop =  tk.Button(window,text ="                    停止                   ",command =lambda:pygame.mixer.music.stop(),font = ("微软雅黑",15))
stop.place(x = 20,y = 410-40)
window.mainloop()


    

    
    
    
